import os, sys
# 配置环境变量
BASE_PATH = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, BASE_PATH)
from core.db import Mysql
from core.df import Df
# 执行
if __name__ == '__main__':
    # kw = '法学'
    kw = input('输入相同的关键词：')
    db = Mysql()
    df = Df(db.select_key(kw), kw=kw)
    df.write()

    print('https://blog.csdn.net/Yellow_python/article/details/80795881')
    print('跑完了记得点个赞')

